package com.hejia.alauda.jms;

import org.apache.activemq.command.ActiveMQTopic;

public class AlaudaEvent {
	
	public static final ActiveMQTopic HEJIA_ORDER_EVENT_TOPIC = new ActiveMQTopic("HEJIA.ORDER.EVENT.TOPIC");
	public static final ActiveMQTopic HEJIA_REGISTER_EVENT_TOPIC = new ActiveMQTopic("HEJIA.REGISTER.EVENT.TOPIC");
	public static final ActiveMQTopic HEJIA_SENDCODE_EVENT_TOPIC = new ActiveMQTopic("HEJIA.SENDCODE.EVENT.TOPIC");
	public static final ActiveMQTopic HEJIA_VALIDATECODE_EVENT_TOPIC = new ActiveMQTopic("HEJIA.VALIDATECODE.EVENT.TOPIC");
	public static final ActiveMQTopic HEJIA_PAY_EVENT_TOPIC = new ActiveMQTopic("HEJIA.PAY.EVENT.TOPIC");
	public static final ActiveMQTopic HEJIA_SOLDOUT_EVENT_TOPIC = new ActiveMQTopic("HEJIA.SOLDOUT.EVENT.TOPIC");
	
	private Event event;
	
	private String text;
	
	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public static enum Event {
		EVENT_LOGIN, //登录
		EVENT_REGISTER, //注册
		EVENT_BUY_SUCCESS; //购买成功
	}
}
